import 'package:logger/logger.dart';

class LoggerUtils {
  static final Logger _logger = Logger(
    printer: PrettyPrinter(methodCount: 2, lineLength: 120, printTime: true),
  );
  static final Logger _simpleLogger = Logger(
    printer: SimplePrinter(),
  );

  static void log(dynamic message, {Level level = Level.info}) {
    // if (!Config.debug) {
    //   return;
    // }
    _logger.log(level, message);
  }

  static void logSimple(dynamic message, {Level level = Level.info}) {
    // if (!Config.debug) {
    //   return;
    // }
    _simpleLogger.log(level, message);
  }
}
